<?php
class CodeSpace_Oauth_Server_Consumer_Authentication_Array
{
    private $_consumers = array();
    
    public function __construct()
    {}
    
    public function addConsumer($key, $secret)
    {
        $this->_consumers[$key] = array(
            'secret'	=>    $secret
        );
    }
    
    public function removeConsumer($key)
    {
        if(array_key_exists($key, $this->_consumers))
        {
            unset($this->_consumers[$key]);
        }
    }
    
    public function authenticate($key)
    {
        if(array_key_exists($key, $this->_consumers))
        {
            return $this->_consumers;
        }
        
        return false;
    }
}
?>